package two_shang.otherTest.ThreadPackage;

public class TestYield implements Runnable {
    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName() + "开始执行");
        Thread.yield();//礼让
        System.out.println(Thread.currentThread().getName() + "停止执行");

    }
}
